package kr.hkit.androidcomplete02.ch01;

import kr.hkit.androidcomplete02.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class ch01Main extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch01_main);
	}

	public void mOnClick(View v) {
		Intent intent = null;
		switch (v.getId()) {
		case R.id.ch01_btn01:

			intent = new Intent(this, RadioCheck.class);
			break;
		case R.id.ch01_btn02:

			intent = new Intent(this, ScaleTypeTest.class);
			break;
		case R.id.ch01_btn03:

			intent = new Intent(this, ImageviewAttr.class);
			break;
		case R.id.ch01_btn04:

			intent = new Intent(this, ButtonDrawable.class);
			break;
		case R.id.ch01_btn05:

			intent = new Intent(this, ButtonSelector.class);
			break;
		case R.id.ch01_btn06:

			intent = new Intent(this, ListViewTest.class);
			break;
		case R.id.ch01_btn07:

			intent = new Intent(this, AdapterViewEx.class);
			break;
		case R.id.ch01_btn08:

			intent = new Intent(this, ListFromArray.class);
			break;
		}
		startActivity(intent);
	}

}
